<div class="chudauts index">
<?php //print_r($chudauts);?>
	<!-- <h2><?php __('Chủ đầu tư');?></h2> -->
	<h2 ><b>DANH SÁCH CHỦ ĐẦU TƯ</b></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
		<th><?php echo $this->Paginator->sort('Stt','id');?></th>
			<th><?php echo $this->Paginator->sort('Chủ đầu tư','tenchudautu');?></th> 
			
			<th class="actions"><?php __('Điều chỉnh');?></th>
	</tr>
	<?php
	$i = 0;
	//print_r($chudauts);
	foreach ($chudauts as $chudaut):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $i; ?>&nbsp;</td>
		<td><?php echo $chudaut['Chudaut']['tenchudautu']; ?>&nbsp;</td>
		
		<td class="actions">
			<?php echo $this->Html->link(__('Sửa', true), array('action' => 'edit', $chudaut['Chudaut']['id'])); ?>
			<?php echo $this->Html->link(__('Xóa', true), array('action' => 'delete', $chudaut['Chudaut']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $chudaut['Chudaut']['id'])); ?>
			<?php echo $this->Html->link(__('Công trình đã thi công', true),  array('action' => 'chuct', $chudaut['Chudaut']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<!-- <p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
	));
	?>	</p> -->

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('Lùi lại', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('Tiếp theo', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
	<div align="right" class="actions">
<!--	<h3><?php __('Actions'); ?></h3> -->
	<ul>
		<li><?php echo $this->Html->link(__('Thêm chủ đầu tư', true), array('action' => 'add')); ?></li>
	</ul>
</div>
</div>
